<?php
	require_once('WebSite/SetupForm.php');
	$configFile = 'mlcomconfig.php';
	if(!file_exists($configFile))
	{
		$setupForm =& new SetupForm();
		$setupForm->setParams($_GET);
		$setupForm->pageLoad();
		exit;
	}
	else
	{
		require_once($configFile);
	}
	
	require_once('DataController/CommonConfig.php');
	require_once('MailTrans/MLExecute.php');
	require_once('WebSite/PageBase.php');
	CommonConfig::setCommonConfig(MLCOM_CONNECTION_STRING,
										MLCOM_ADMIN_MAILADDRESS,
										MLCOM_CULTURE_SET);
										
	
	$type = "";
	if($_GET["type"] == null)
		$type = "nothing";
	else
		$type = $_GET["type"];
		
	$page =& PageBase::pageFactory($type);
	$page->setParams($_GET);
	$page->pageLoad();
?>